import {userStore} from '@/store/userStore.ts'

const user = userStore()
export default {
    removeUser
}


function removeUser() {
    sessionStorage.removeItem("useStore")
    user.setLoginFlag(false)
    user.phone = ""
    user.address = ""
    user.username = ""
    user.status = ""
    user.userInfo = {}

    if ($cookies.isKey("token")) {
        $cookies.remove("token")
    }
    if ($cookies.isKey("username")) {
        $cookies.remove("username")
    }
}

